package main

import (
	"server/core"
	_ "server/router"

	beego "github.com/beego/beego/v2/server/web"
)

func main() {
	if core.GetDB() != nil {
		db, _ := core.GetDB().DB()
		defer db.Close()
	}
	beego.Run()
}
